# Generated automatically from Makefile.in by configure.
# $Id: Makefile.in,v 1.59 2002/03/24 22:20:19 jnelson Exp $

.SUFFIXES:
.SUFFIXES: .o .c
.PHONY: clean mrclean distclean depend all dist



GCC_FLAGS = -Wstrict-prototypes -Wpointer-arith -Wcast-align -Wcast-qual\
  -Wtraditional\
  -Wshadow\
  -Wconversion\
  -Waggregate-return\
  -Wmissing-prototypes\
  -Wnested-externs\
  -Wall \
  -Wundef -Wwrite-strings -Wredundant-decls -Winline

#PUBLIC_INCLUDE_DIR = /mnt/hgfs/wsr_share/8168/cgi/common
#INTERFACE_DIR = /mnt/hgfs/wsr_share/8168/cgi
#EXEC_DIR = /mnt/hgfs/wsr_share/8168/12
  
INCLUDE += -I$(PUBLIC_INCLUDE_DIR) \
		-I$(INTERFACE_DIR)/boa 

ONVIF_SRC = onvif
COMMON_SRC = $(PUBLIC_INCLUDE_DIR)
BOA_INTERFACE = $(INTERFACE_DIR)/boa
INTERFACE_SRC = interface

srcdir = .
VPATH = .:./../extras
LIBS =  
CFLAGS = -O2 -pipe -Wall -I. $(INCLUDE)
ONVIF1 = -DWITH_COOKIES -DWITH_ZLIB 
ONVIF2 =  -lz

ONVIF_SRC_FILES = $(ONVIF_SRC)/onvifC.c $(ONVIF_SRC)/onvifServer.c $(ONVIF_SRC)/stdsoap2.c $(ONVIF_SRC)/duration.c  $(ONVIF_SRC)/onvif.c $(ONVIF_SRC)/onvifClient.c $(INTERFACE_SRC)/boa_interface.c
#ONVIF_OBJ_FILES= $(ONVIF_SRC)/onvifC.o $(ONVIF_SRC)/onvifface.o $(ONVIF_SRC)/stdsoap2.o $(ONVIF_SRC)/duration.o $(ONVIF_SRC)/onvifServer.o $(ONVIF_SRC)/onvif.o $(ONVIF_SRC)/onvifClient.o

#COMMON_SRC_FILES = $(COMMON_SRC)/msgctl.c $(COMMON_SRC)/semctl.c $(COMMON_SRC)/shmctl.c
#SYS_SERVER_FILES = $(INTERFACE_SRC)/boa_interface.c

# Change these if necessary

YACC = bison -y 
LEX = flex 
CC = arm_v5t_le-gcc
CPP = arm_v5t_le-gcc -E
AR = ar rcs

SOURCES = alias.c boa.c buffer.c cgi.c cgi_header.c config.c escape.c \
	get.c hash.c ip.c log.c mmap_cache.c pipe.c queue.c read.c \
	request.c response.c select.c signals.c util.c sublog.c \
	$(ONVIF_SRC_FILES) 


OBJS = y.tab.o lex.yy.o $(SOURCES:.c=.o) timestamp.o 
 

all:	boa 

boa: $(OBJS) 
	$(CC) -c $^ $(COMMON_SRC_FILES) $(LIBS) $(CFLAGS) -lpthread 
	$(AR) boa.a $^
	
boa_indexer:	index_dir.o escape.o   
	$(CC) -o $@ $^ $(LIBS)

install:
	cp boa boa_indexer $(EXEC_DIR)

clean:
	rm -f $(OBJS) boa.a core lex.yy.c y.tab.c y.tab.h *~ boa_indexer index_dir.o 
	
distclean:	mrclean

mrclean:	clean
	rm -f config.status config.cache config.h Makefile config.log

# parser dependencies

y.tab.c y.tab.h:	boa_grammar.y
	$(YACC) -d $^

lex.yy.c:	boa_lexer.l
	$(LEX) $^

# timestamp

timestamp.o:	$(SOURCES) boa_grammar.y boa_lexer.l

# depend stuff
.depend:
	$(CPP) -MM $(SOURCES) > .depend
        
depend:
	-rm -f .depend
	$(MAKE) .depend
        
include .depend

# tags
tags:	$(SOURCES)
	ctags -o tags $^ *.h

# dist
dist:
	$(MAKE) clean
	./makedist.sh
        
# object dump
boa.objdump:    boa
	objdump --disassemble-all --source boa > $@

